package com.example.b_308.myapplication.model.base;


import com.example.b_308.myapplication.model.base.BaseModel;

/**
 * Created by tongkang on 2017/10/31.
 */

public class BaseCompany extends BaseModel<BaseCompany> {
    /**
     * 公司ID
     */
    String id;
    /**
     * 公司名称
     */
    String name;
    /**
     * 公司地址
     */
    String address;
    /**
     * 公司电话
     */
    String telephone;
    /**
     * 公司规模
     */
    int count;
    /**
     * 创建时间
     */
    String create_time;

    public void setId(String id) {

        put("id", id);
        this.id = id;
    }

    public void setName(String name) {

        put("name", name);
        this.name = name;
    }

    public void setAddress(String address) {

        put("address", address);
        this.address = address;
    }

    public void setTelephone(String telephone) {

        put("telephone", telephone);
        this.telephone = telephone;
    }

    public void setCount(int count) {

        put("count", count);
        this.count = count;
    }

    public void setCreate_time(String create_time) {

        put("create_time", create_time);
        this.create_time = create_time;
    }

    public String getId() {
        if (null == id)
            id = getStr("id");
        return id;
    }

    public String getName() {
        if (null == name)
            name = getStr("name");
        return name;
    }

    public String getAddress() {
        if (null == address)
            address = getStr("address");
        return address;
    }

    public String getTelephone() {
        if (null == telephone)
            telephone = getStr("telephone");
        return telephone;
    }

    public int getCount() {
        if (0 > count)
            count = getInt("count");
        return count;
    }

    public String getCreate_time() {
        if (null == create_time)
            create_time = getStr("create_time");
        return create_time;
    }
}
